<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>管理页面</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script src="js/prototype.lite.js" type="text/javascript"></script>
<script src="js/moo.fx.js" type="text/javascript"></script>
<script src="js/moo.fx.pack.js" type="text/javascript"></script>
<style>
body {
	font: 12px Arial, Helvetica, sans-serif;
	color: #000;
	background-color: #EEF2FB;
	margin: 0px;
}

#container {
	width: 182px;
}

H1 {
	font-size: 12px;
	margin: 0px;
	width: 182px;
	cursor: pointer;
	height: 30px;
	line-height: 20px;
}

H1 a {
	display: block;
	width: 182px;
	color: #000;
	height: 30px;
	text-decoration: none;
	moz-outline-style: none;
	background-image: url(images/menu_bgS.gif);
	background-repeat: no-repeat;
	line-height: 30px;
	text-align: center;
	margin: 0px;
	padding: 0px;
}

.content {
	width: 182px;
	height: 26px;
}

.MM ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	display: block;
}

.MM li {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	list-style-type: none;
	display: block;
	text-decoration: none;
	height: 26px;
	width: 182px;
	padding-left: 0px;
}

.MM {
	width: 182px;
	margin: 0px;
	padding: 0px;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	clip: rect(0px, 0px, 0px, 0px);
}

.MM a:link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(images/menu_bg1.gif);
	background-repeat: no-repeat;
	height: 26px;
	width: 182px;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}

.MM a:visited {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(images/menu_bg1.gif);
	background-repeat: no-repeat;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	height: 26px;
	width: 182px;
	text-decoration: none;
}

.MM a:active {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(images/menu_bg1.gif);
	background-repeat: no-repeat;
	height: 26px;
	width: 182px;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}

.MM a:hover {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	font-weight: bold;
	color: #006600;
	background-image: url(images/menu_bg2.gif);
	background-repeat: no-repeat;
	text-align: center;
	display: block;
	margin: 0px;
	padding: 0px;
	height: 26px;
	width: 182px;
	text-decoration: none;
}
</style>
</head>

<body>
	<table width="100%" height="280" border="0" cellpadding="0"
		cellspacing="0" bgcolor="#EEF2FB">
		
		<tr>
		<c:choose>
			<c:when test="${employee==null}">
			<td width="182" valign="top"><div id="container">
					<h1 class="type">
						<a href="javascript:void(0)">常规管理</a>
					</h1>
					<div class="content">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="images/menu_topline.gif" width="182"
									height="5" />
								</td>
							</tr>
						</table>
						<ul class="MM">
							<li><a href="adminAction!listAdmin.action" target="main">管理员</a>
							</li>
							<li><a href="admin/data_backup.jsp" target="main">数据备份</a>
							</li>
						</ul>
					</div>

					<h1 class="type">
						<a href="javascript:void(0)">员工管理</a>
					</h1>
					<div class="content">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="images/menu_topline.gif" width="182"
									height="5" />
								</td>
							</tr>
						</table>
						<ul class="MM">
							<li><a href="employeeAction!listEmployee.action"
								target="main">查看员工信息员工</a>
							</li>
							<li><a href="employeeAction!showAddEmployee.action"
								target="main">增加员工</a>
							</li>
							<li><a href="admin/emp_todelete.jsp"
								target="main">删除员工</a>
							</li>
							<li><a href="admin/emp_toupdate.jsp"
								target="main">修改员工信息</a>
							</li>
						</ul>
					</div>
					<h1 class="type">
						<a href="javascript:void(0)">部门信息</a>
					</h1>
					<div class="content">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="images/menu_topline.gif" width="182"
									height="5" />
								</td>
							</tr>
						</table>
						<ul class="MM">
							<li><a href="departmentAction!listDepartment.action"
								target="main">显示部门</a>
							</li>
							<li><a href="admin/dept_add.jsp" target="main">添加部门</a>
							</li>
							<li><a href="admin/dept_show_updatelist.jsp" target="main">修改部门</a>
							</li>
							<li><a href="admin/dept_delete.jsp" target="main">删除部门</a>
							</li>
							<li><a href="admin/job_add.jsp" target="main">添加职务</a>
							</li>
						</ul>
					</div>
					<%--<h1 class="type">
						<a href="javascript:void(0)">津贴管理</a>
					</h1>
					<div class="content">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="images/menu_topline.gif" width="182"
									height="5" />
								</td>
							</tr>
						</table>
						<ul class="MM">
							<li><a href="subsidyAction!listSubsidy.action" target="main">所有津贴</a>
							</li>
							<li><a href="subsidyAction!showAddSubsidy.action"
								target="main">添加津贴</a>
							</li>
						</ul>
					</div>
					--%><h1 class="type">
						<a href="javascript:void(0)">工资管理</a>
					</h1>
					<div class="content">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="images/menu_topline.gif" width="182"
									height="5" />
								</td>
							</tr>
						</table>
						<ul class="MM">
							<li><a href="admin/wage_cur_month.jsp" target="main">查看当月工资</a>
							</li>
							<li><a href="admin/wage_history.jsp" target="main">查看历史工资</a>
							</li>
							<li><a href="wageAction!generateWages.action" target="main">生成本月工资</a>
							</li>
							<li><a href="wageAction!listWage.action" target="main">工资信息修改</a>
							</li>
							<li><a href="wageAction!checkWage.action" target="main">工资核算</a>
							</li>
							<li><a href="wageAction!checkWage.action" target="main">工资报表生成</a>
							</li>
						</ul>
					</div>
					<h1 class="type">
						<a href="javascript:void(0)">工作表现记录</a>
					</h1>
					<div class="content">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="images/menu_topline.gif" width="182"
									height="5" />
								</td>
							</tr>
						</table>
						<ul class="MM">
							<li><a href="admin/perfor_add.jsp"
								target="main">增加工作记录</a>
							</li>
							<li><a href="admin/perfor_toread.jsp"
								target="main">查看工作记录</a>
							</li>
							<%--<li><a href="admin/perfor_list.jsp"
								target="main">修改工作记录</a>
							</li>
							<li><a href="admin/perfor_list.jsp"
								target="main">删除工作记录</a>
							</li>
						--%></ul>
					</div>

				</div>
				
				 <script type="text/javascript">
					var contents = document.getElementsByClassName('content');
					var toggles = document.getElementsByClassName('type');

					var myAccordion = new fx.Accordion(toggles, contents, {
						opacity : true,
						duration : 400
					});
					myAccordion.showThisHideOpen(contents[0]);
				</script></td>
			</c:when>
			<c:otherwise>
			<td width="182" valign="top"><div id="container">
				<h1 class="type">
					<a href="javascript:void(0)">工资信息</a>
				</h1>
				<div class="content">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><img src="images/menu_topline.gif" width="182"
								height="5" />
							</td>
						</tr>
					</table>
					<ul class="MM">
						<li><a href="admin/emp_cur_wage.jsp" target="main">查看当月工资</a>
						</li>
						<li><a href="wageAction!listWageByEmpId.action?employee.emp_id=${employee.emp_id}" target="main">查看历史工资</a>
						</li>
					</ul>
				</div>
				<h1 class="type">
					<a href="javascript:void(0)">工作表现</a>
				</h1>
				<div class="content">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><img src="images/menu_topline.gif" width="182"
								height="5" />
							</td>
						</tr>
					</table>
					<ul class="MM">
					
						
						<li><a href="admin/perfor_personal_cur.jsp" target="main">查看本月工作记录</a>
						</li>
						<li><a href="admin/perfor_personal_history.jsp" target="main">查看历史工作记录</a>
						</li>
					</ul>
				</div>
				<h1 class="type">
					<a href="javascript:void(0)">个人信息</a>
				</h1>
				<div class="content">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><img src="images/menu_topline.gif" width="182"
								height="5" />
							</td>
						</tr>
					</table>
					<ul class="MM">
					<li><a href="admin/emp_all_info.jsp?emp_id=${sessionScope.employee.emp_id}" target="main">查看个人信息</a>
						</li>
						<li><a href="admin/emp_update_perinfo.jsp" target="main">修改个人信息</a>
						</li>
						<li><a href="admin/emp_change_password.jsp" target="main">修改密码</a>
						</li>
					</ul>
				</div>
				</div> <script type="text/javascript">
					var contents = document.getElementsByClassName('content');
					var toggles = document.getElementsByClassName('type');

					var myAccordion = new fx.Accordion(toggles, contents, {
						opacity : true,
						duration : 400
					});
					myAccordion.showThisHideOpen(contents[0]);
				</script></td>
			</c:otherwise>
		</c:choose>
			
		</tr>
	</table>
</body>
</html>
